<!-- /* Description for file.
 * 通告-修改通告
 *
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/notices
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    会兵2011年0706
 * @lastmodified  会兵2011年0706
 */-->
 
<?php
echo $html->css ( 'tab' );
echo $html->css('start/jquery-ui-1.8.2.custom');
echo $javascript->link('jquery-ui-1.8.2.custom.min');
echo $html->css ( 'jquery-validate/css/screen' );

?>

<script type="text/javascript">
//添加验证
$(document).ready(function() {
	$.validator.setDefaults({       
		 submitHandler: function(form) {    
		  form.submit();    
		}       
	});   
			
	$("#NoticeEditForm").validate({
		rules: {
		"data[Notice][title]" :{
			required: true,stringMinLength:0,stringMaxLength:100
			},//主题
		"data[Notice][context]"  :{
			required: false
			}//内容
		},
		messages:{},
		focusInvalid:false,
		onkeyup:false,
		errorPlacement:function(error, element){error.appendTo(element.parent());}
	});
});
//验证结束
</script>

 <script type="text/javascript">
	$(function()
	{
		$("#close").click(function(){		
			window.close();							
		});
	});

</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Personal Office');//一级目录
										   echo '>';echo __('Notice Fence');//二级目录
										   echo '>';?>
									<?php echo $html->tag('span', '公告信息');//当前操作地用span加粗?> 						  
		</td>
	</tr>
</table>
</div>
<!-- 当前位置-->
<div class="tabflex">
<?php echo $form->create('Notice',array('action'=>'edit','type'=> 'post'));?>
<fieldset>
	<legend>公告信息</legend>
	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left;font-size:12px;">
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('Creator');?>:</td>
		<td><?php 
			echo $form->hidden('id',array('value'=>$data['Notice']['id']));
			echo $data['Notice']['creater'];
			?>
		</td>
		<td width="50"></td>
		<td width="100"><?php __('Create_Time');?>:</td>
		<td>
			<?php echo $data['Notice']['pubdate']; ?>
		</td>
	</tr>
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('修改人');?>:</td>
		<td><?php 
			echo $data['Notice']['updater'];
			?>
		</td>
		<td width="50"></td>
		<td width="100"><?php __('修改时间');?>:</td>
		<td>
			<?php 
				echo $data['Notice']['modified'];
			?>
		</td>
	</tr>
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('subject');?>:<font color="red">*</font></td>
		<td colspan="4" align="left"><?php 
			echo $data['Notice']['title'];
			?>
		</td>
	</tr>
	<tr>
		<td width="50"></td>
		<td width="100"><?php __('Field_Value');?>:</td>
		<td colspan="4" align="left">
			<?php 
				echo $form->textarea('context',array('label'=>false,'readonly'=>'readonly','value'=>$data['Notice']['context'],'class' => 'areaStyle'));
			?>
		</td>
	</tr>
	</table>
	</fieldset>
	
	<table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left">
	<tr>
		<td width="50"></td>
		<td width="100"><?php
			$url = ROOT_WEB_PATH."/notices/showlist";
			echo $form->button('返回',array('type'=>'button','class'=>'btn2','onclick'=>'location.href="'.$url.'"'));?>
		</td>
	</tr>
</table>
<?php echo $form->end();?>
</div>
